import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/main'
import Restaurants from '@/components/restaurants/restaurants'
import NewRestaurant from '@/components/restaurants/newRestaurant'
import rActivity from '@/components/restaurants/activity'
import UserList from '@/components/user/UserList'
import Discount from '@/components/discount/Discount'
import Consumer from '@/components/consumer/Consumer'
import Booking from '@/components/booking/Booking'
import Review from '@/components/review/Review'
import Activity from '@/components/activity/Activity'
import NewActivity from '@/components/activity/NewActivity'
import BlockBooking from '@/components/blockBooking/blockBooking'
import BusLineIndex from '@/components/busLine/busLineIndex'
import BusLineNew from '@/components/busLine/busLineNew'
import BusStopMap from '@/components/busRouter/BusStopMap'
import BusRouterList from '@/components/busRouter/BusRouterList'
import BusStopList from '@/components/busStop/BusStopList'
import BusStopNew from '@/components/busStop/BusStopNew'
import BusRouteUploadExcel from '@/components/busRouter/BusRouteUploadExcel'
import FeedBackList from '@/components/feedBack/FeedBackList'
import FeedBackEdit from '@/components/feedBack/FeedBackEdit'
import TrainStation from '@/components/train/station/TrainStation'
import NewTrainStation from '@/components/train/station/NewTrainStation'
import RouteList from '@/components/train/route/RouteList'
import RouteNew from '@/components/train/route/RouteNew'
import Schedule from '@/components/train/schedule/Schedule'
import ScheduleUploadExcel from '@/components/train/schedule/ScheduleUploadExcel'
import RouteSchedule from '@/components/train/routeSchedule/RouteSchedule'
import NewRouteSchedule from '@/components/train/routeSchedule/NewRouteSchedule'
import Direction from '@/components/train/direction/Direction'
import DirectionNew from '@/components/train/direction/DirectionNew'
import ShopUser from '@/components/shop/ShopUser'
import ShopUserNew from '@/components/shop/ShopUserNew'
import ShopUserView from '@/components/shop/ShopUserView'
import ShopAdIndex from '@/components/shop/ShopAdIndex'
import ShopAdNew from '@/components/shop/ShopAdNew'
import ShopAdView from '@/components/shop/ShopAdView'
import NewCustomerActivity from '@/components/shop/NewCustomerActivity'
import ViewCustomerActivity from '@/components/shop/ViewCustomerActivity'
import Verify from '@/components/shop/Verify'
import VerificationIndex from '@/components/shop/VerificationIndex'
import ReportedAd from '@/components/shop/ReportedAd'
import DuplicateIndex from '@/components/shop/DuplicateIndex'
import DuplicateView from '@/components/shop/DuplicateView'
import PhoneIndex from '@/components/shop/PhoneIndex'
import PhoneNew from '@/components/shop/PhoneNew'
import PhoneDataUpload from '@/components/shop/PhoneDataUpload'
import ElectronicsDataUpload from '@/components/shop/ElectronicsDataUpload'
import ExcelNameIndex from '@/components/shop/ExcelNameIndex'
import ExcelNameEdit from '@/components/shop/ExcelNameEdit'
import VerifyProperty from '@/components/shop/VerifyProperty'
import CategoryTranslationIndex from '@/components/shop/CategoryTranslationIndex'
// import CategoryTranslationNew from '@/components/shop/CategoryTranslationNew'
import PropertyIndex from '@/components/shop/PropertyIndex'
import PropertyEdit from '@/components/shop/PropertyEdit'
import PropertyNew from '@/components/shop/PropertyNew'
import ComputerUploadExcel from '@/components/shop/computerData/ComputerUploadExcel'
import ComputerModelIndex from '@/components/shop/computerData/ComputerModelIndex'
import ComputerModelEdit from '@/components/shop/computerData/ComputerModelEdit'
import Login from '@/components/login'


Vue.use(Router)

// export default new Router({
//   routes: [
//     {
//       path: '/',
//       name: 'main',
//       component: Main,
//       redirect: '/restaurants',
//       children: [
//         {path: '/restaurants', component: Restaurants, name: 'restaurants'},
//         {path: '/newRestaurant', component: NewRestaurant, name: 'newRestaurant'},
//         {path: '/activity', component: rActivity, name: 'rActivity'},
//         {path: '/userList', component: UserList, name: 'UserList'},
//         {path: '/discount', component: Discount, name: 'Discount'},
//         {path: '/consumerList', component: Consumer, name: 'Consumer'},
//         {path: '/bookingList', component: Booking, name: 'Booking'},
//         {path: '/ReviewList', component: Review, name: 'Review'},
//         {path: '/activityList', component: Activity, name: 'Activity'},
//         {path: '/newActivity', component: NewActivity, name: 'NewActivity'},
//         {path: '/blockBooking', component: BlockBooking, name: 'BlockBooking'},
//         {path: '/busStopMap', component: BusStopMap, name: 'BusStopMap'},
//         {path: '/busLineIndex', component: BusLineIndex, name: 'BusLineIndex'},
//         {path: '/busLineNew', component: BusLineNew, name: 'BusLineNew'},
//         {path: '/busRouterList', component: BusRouterList, name: 'BusRouterList'},
//         {path: '/busStopList', component: BusStopList, name: 'BusStopList'},
//         {path: '/busStopNew', component: BusStopNew, name: 'BusStopNew'},
//         {path: '/busRouteUploadExcel', component: BusRouteUploadExcel, name: 'BusRouteUploadExcel'},
//         {path: '/feedBackList', component: FeedBackList, name: 'FeedBackList'},
//         {path: '/feedBackEdit', component: FeedBackEdit, name: 'FeedBackEdit'},
//         {path: '/trainStation', component: TrainStation, name: 'TrainStation'},
//         {path: '/newTrainStation', component: NewTrainStation, name: 'NewTrainStation'},
//         {path: '/routeList', component: RouteList, name: 'RouteList'},
//         {path: '/routeNew', component: RouteNew, name: 'RouteNew'},
//         {path: '/schedule', component: Schedule, name: 'Schedule'},
//         {path: '/scheduleUploadExcel', component: ScheduleUploadExcel, name: 'ScheduleUploadExcel'},
//         {path: '/routeSchedule', component: RouteSchedule, name: 'RouteSchedule'},
//         {path: '/newRouteSchedule', component: NewRouteSchedule, name: 'NewRouteSchedule'},
//         {path: '/direction', component: Direction, name: 'Direction'},
//         {path: '/directionNew', component: DirectionNew, name: 'DirectionNew'},
//         {path: '/shopAdIndex', component: ShopAdIndex, name: 'ShopAdIndex'},
//         {path: '/shopAdNew', component: ShopAdNew, name: 'ShopAdNew'},
//         {path: '/shopAdView', component: ShopAdView, name: 'ShopAdView'},
//         {path: '/shopUser', component: ShopUser, name: 'ShopUser'},
//         {path: '/shopUserNew', component: ShopUserNew, name: 'ShopUserNew'},
//         {path: '/shopUserView', component: ShopUserView, name: 'ShopUserView'},
//         {path: '/newCustomerActivity', component: NewCustomerActivity, name: 'NewCustomerActivity'},
//         {path: '/viewCustomerActivity', component: ViewCustomerActivity, name: 'ViewCustomerActivity'},
//         {path: '/verificationIndex', component: VerificationIndex, name: 'VerificationIndex'},
//         {path: '/verify', component: Verify, name: 'Verify'},
//         {path: '/reportedAd', component: ReportedAd, name: 'ReportedAd'},
//         {path: '/duplicateIndex', component: DuplicateIndex, name: 'DuplicateIndex'},
//         {path: '/duplicateView', component: DuplicateView, name: 'DuplicateView'},
//         {path: '/phoneIndex', component: PhoneIndex, name: 'PhoneIndex'},
//         {path: '/phoneNew', component: PhoneNew, name: 'PhoneNew'},
//         {path: '/phoneDataUpload', component: PhoneDataUpload, name: 'PhoneDataUpload'},
//         {path: '/electronicsDataUpload', component: ElectronicsDataUpload, name: 'ElectronicsDataUpload'},
//         {path: '/excelNameIndex', component: ExcelNameIndex, name: 'ExcelNameIndex'},
//         {path: '/excelNameEdit', component: ExcelNameEdit, name: 'ExcelNameEdit'},
//         {path: '/verifyProperty', component: VerifyProperty, name: 'VerifyProperty'},
//         {path: '/categoryTranslationIndex', component: CategoryTranslationIndex, name: 'CategoryTranslationIndex'},
//         {path: '/propertyIndex', component: PropertyIndex, name: 'PropertyIndex'},
//         {path: '/propertyEdit', component: PropertyEdit, name: 'PropertyEdit'},
//         {path: '/propertyNew', component: PropertyNew, name: 'PropertyNew'},
//         {path: '/computerUploadExcel', component: ComputerUploadExcel, name: 'ComputerUploadExcel'},
//         {path: '/computerModelIndex', component: ComputerModelIndex, name: 'ComputerModelIndex'},
//         {path: '/computerModelEdit', component: ComputerModelEdit, name: 'ComputerModelEdit'}
//       ]
//     },
//     {
//       path: '/login',
//       name: 'Login',
//       component: Login
//     },
//   ]
// })


export default new Router({
  routes: [
    {path: '/restaurants', component: Restaurants, name: 'restaurants'},
    {path: '/newRestaurant', component: NewRestaurant, name: 'newRestaurant'},
    {path: '/activity', component: rActivity, name: 'rActivity'},
    {path: '/userList', component: UserList, name: 'UserList'},
    {path: '/discount', component: Discount, name: 'Discount'},
    {path: '/consumerList', component: Consumer, name: 'Consumer'},
    {path: '/bookingList', component: Booking, name: 'Booking'},
    {path: '/ReviewList', component: Review, name: 'Review'},
    {path: '/activityList', component: Activity, name: 'Activity'},
    {path: '/newActivity', component: NewActivity, name: 'NewActivity'},
    {path: '/blockBooking', component: BlockBooking, name: 'BlockBooking'},
    {path: '/busStopMap', component: BusStopMap, name: 'BusStopMap'},
    {path: '/busLineIndex', component: BusLineIndex, name: 'BusLineIndex'},
    {path: '/busLineNew', component: BusLineNew, name: 'BusLineNew'},
    {path: '/busRouterList', component: BusRouterList, name: 'BusRouterList'},
    {path: '/busStopList', component: BusStopList, name: 'BusStopList'},
    {path: '/busStopNew', component: BusStopNew, name: 'BusStopNew'},
    {path: '/busRouteUploadExcel', component: BusRouteUploadExcel, name: 'BusRouteUploadExcel'},
    {path: '/feedBackList', component: FeedBackList, name: 'FeedBackList'},
    {path: '/feedBackEdit', component: FeedBackEdit, name: 'FeedBackEdit'},
    {path: '/trainStation', component: TrainStation, name: 'TrainStation'},
    {path: '/newTrainStation', component: NewTrainStation, name: 'NewTrainStation'},
    {path: '/routeList', component: RouteList, name: 'RouteList'},
    {path: '/routeNew', component: RouteNew, name: 'RouteNew'},
    {path: '/schedule', component: Schedule, name: 'Schedule'},
    {path: '/scheduleUploadExcel', component: ScheduleUploadExcel, name: 'ScheduleUploadExcel'},
    {path: '/routeSchedule', component: RouteSchedule, name: 'RouteSchedule'},
    {path: '/newRouteSchedule', component: NewRouteSchedule, name: 'NewRouteSchedule'},
    {path: '/direction', component: Direction, name: 'Direction'},
    {path: '/directionNew', component: DirectionNew, name: 'DirectionNew'},
    {path: '/shopAdIndex', component: ShopAdIndex, name: 'ShopAdIndex'},
    {path: '/shopAdNew', component: ShopAdNew, name: 'ShopAdNew'},
    {path: '/shopAdView', component: ShopAdView, name: 'ShopAdView'},
    {path: '/shopUser', component: ShopUser, name: 'ShopUser'},
    {path: '/shopUserNew', component: ShopUserNew, name: 'ShopUserNew'},
    {path: '/shopUserView', component: ShopUserView, name: 'ShopUserView'},
    {path: '/newCustomerActivity', component: NewCustomerActivity, name: 'NewCustomerActivity'},
    {path: '/viewCustomerActivity', component: ViewCustomerActivity, name: 'ViewCustomerActivity'},
    {path: '/verificationIndex', component: VerificationIndex, name: 'VerificationIndex'},
    {path: '/verify', component: Verify, name: 'Verify'},
    {path: '/reportedAd', component: ReportedAd, name: 'ReportedAd'},
    {path: '/duplicateIndex', component: DuplicateIndex, name: 'DuplicateIndex'},
    {path: '/duplicateView', component: DuplicateView, name: 'DuplicateView'},
    {path: '/phoneIndex', component: PhoneIndex, name: 'PhoneIndex'},
    {path: '/phoneNew', component: PhoneNew, name: 'PhoneNew'},
    {path: '/phoneDataUpload', component: PhoneDataUpload, name: 'PhoneDataUpload'},
    {path: '/electronicsDataUpload', component: ElectronicsDataUpload, name: 'ElectronicsDataUpload'},
    {path: '/excelNameIndex', component: ExcelNameIndex, name: 'ExcelNameIndex'},
    {path: '/excelNameEdit', component: ExcelNameEdit, name: 'ExcelNameEdit'},
    {path: '/verifyProperty', component: VerifyProperty, name: 'VerifyProperty'},
    {path: '/categoryTranslationIndex', component: CategoryTranslationIndex, name: 'CategoryTranslationIndex'},
    {path: '/propertyIndex', component: PropertyIndex, name: 'PropertyIndex'},
    {path: '/propertyEdit', component: PropertyEdit, name: 'PropertyEdit'},
    {path: '/propertyNew', component: PropertyNew, name: 'PropertyNew'},
    {path: '/computerUploadExcel', component: ComputerUploadExcel, name: 'ComputerUploadExcel'},
    {path: '/computerModelIndex', component: ComputerModelIndex, name: 'ComputerModelIndex'},
    {path: '/computerModelEdit', component: ComputerModelEdit, name: 'ComputerModelEdit'}
  ]
})

